<?php
@$trid=$_REQUEST[trid];@$ygid=$_REQUEST[ygid];
@$tcid=$_REQUEST[tcid];
if(!empty($trid) && !empty($ygid)){
    $pdo=new PDO('mysql:dbname=shuju;charset=utf8','root');
    $use=$pdo->prepare('update customerLogin set guishuId=:a where id=:b');
    $isok=$use->execute(array('a'=>$ygid,'b'=>$trid));
    if(!empty($isok)){
        echo "yes";
    }else{
        echo "no";
    }
}

if(!empty($tcid) && !empty($ygid)){
    $pdo=new PDO('mysql:dbname=shuju;charset=utf8','root');
    $use=$pdo->prepare('update customerLogin set guishuId=0 where id=:ab');
    $isok=$use->execute(array('ab'=>$tcid));
    if(!empty($isok)){
        echo "tcyes";
    }else{
        echo "tcno";
    }
}

?>